import { createSlice } from "@reduxjs/toolkit";

const initialState = {
  registerData: {
    email: "",
    password: "",
  },
};

const registerSlice = createSlice({
  name: "register",
  initialState: initialState,
  reducers: {
    registerUser: (state, { payload }) => {
      state.registerData = payload;
    },
  },
});
export const { registerUser } = registerSlice.actions;

export default registerSlice.reducer;
